﻿using Base.FileRemoteModel.Accredit;
using Base.FileService.Interface;
using WeDonekRpc.Client.Interface;

namespace Base.FileService.RpcEvent
{
    internal class UserFileAccreditEvent : IRpcApiService
    {
        private readonly IUserFileAccredit _Service;

        public UserFileAccreditEvent ( IUserFileAccredit service )
        {
            this._Service = service;
        }

        public bool ApplyFileReadAccredit ( ApplyFileReadAccredit obj )
        {
            return this._Service.Set(obj.AccreditId, obj.FileId, obj.ValidTime);
        }
    }
}
